package com.jihui.enterprise.web.common;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ModelAttribute;

/**
 * @author hxz
 * @since 2016/08/12 15:22
 */
@ControllerAdvice
public class UrlControllerAdvice {
    @Value("${info.account.domain}")
    private String accountDomain;

    @Value("${info.user.domain}")
    private String userDomain;

    @Value("${info.buyer.domain}")
    private String buyerDomain;

    @Value("${info.index.domain}")
    private String indexDomain;

    @Value("${info.apply.domain}")
    private String applyDomain;

    @ModelAttribute("applyDomain")
    public String getApplyDomain() {
        return applyDomain;
    }

    @ModelAttribute("accountDomain")
    public String getAccountDomain() {
        return accountDomain;
    }

    @ModelAttribute("userDomain")
    public String getUserDomain() {
        return userDomain;
    }

    @ModelAttribute("buyerDomain")
    public String getBuyerDomain() {
        return buyerDomain;
    }

    @ModelAttribute("indexDomain")
    public String getIndexDomain() {
        return indexDomain;
    }
}
